package com.liuwei.msmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liuwei.msmall.common.utils.PageUtils;
import com.liuwei.msmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author llww
 * @email 2456888577@qq.com
 * @date 2021-02-25 17:45:01
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    void removeBatchByIds(List<Long> asList);

    void updateCascade(CategoryEntity category);

    Map<Long, String> getCateMap(List<Long> catIds);

    Long[] getCatePathById(Long catelogId);

    List<CategoryEntity> getCatelogLevel1();

}

